package com.hotel.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hotel.mapper.RoomMapper;
import com.hotel.mapper.UserMapper;
import com.hotel.pojo.Room;
import com.hotel.pojo.RoomType;
import com.hotel.pojo.User;
import com.hotel.service.RoomService;
import com.hotel.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author shkstart
 * @create 2021-06-27 10:41
 */
@Service
public class RoomServiceImpl extends ServiceImpl<RoomMapper, Room> implements RoomService {

    @Autowired
    private RoomMapper roomMapper;

    @Override
    public List<Room> findAll() {
        return roomMapper.findAll();
    }


//    @Override
//    public List<Room> findList(Map<String, Object> queryMap) {
//        // TODO Auto-generated method stub
//        return roomMapper.findList(queryMap);
//    }




//    @Override
//    public Integer getTotal(Map<String, Object> queryMap) {
//        // TODO Auto-generated method stub
//        return roomMapper.getTotal(queryMap);
//    }
//    @Override
//    public Room findBySn(String sn) {
//        // TODO Auto-generated method stub
//        return roomMapper.findBySn(sn);
//    }

}
